import Vue from 'vue';
import App from './App.vue';
import store from './store';
import router from './router';
import './rem';
import './plugins/vant';

import DefaultPage from '@/components/DefaultPage';
import ShopList from '@/components/ShopList';
import Header from '@/components/Header';

Vue.component('DefaultPage', DefaultPage);
Vue.component('ShopList', ShopList);
Vue.component('Header', Header);

Vue.config.productionTip = false;

new Vue({
  render: h => h(App),
  store,
  router,
  beforeCreate() {
    //全局事件总线
    Vue.prototype.$bus = this;
  },
}).$mount('#app');
